package com.app.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_supervision_matter")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MatterModel {
    private Integer id;
    private String matterName;
    private String unit;
    private Integer dutiesId;
    private Integer dutyName;
    private Integer pid;
    private String progressTime;
    @TableField(exist = false)
    private String dutyNameText;
    private String completeTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private String startTime;
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private String updateTime;
    @TableField(exist = false)
    private List<ProgressModel> progress;
    @TableField(exist = false)
    private String duties;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private DutiesModel dutiesModel;
}
